<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head jqueryui="true" jquerytheme="redmond"></sj:head>
<script type="text/javascript">
	function okButtonDeactive() {
		$("#deactivedialog").dialog("close");
	};
	function cancelButtonDeactive() {
		$("#deactivedialog").dialog("close");
	};

	function onClickSave() {
		window.location = "programmeDetailActionSave.action";
	};
	function onClickBack() {
		window.location = "programmeDetailActionBack.action";
	};
</script>
</head>
<body>
	<h3>
		<b>Programme Details</b>
	</h3>
	<sj:dialog id="deactivedialog"
		buttons="{ 
    		'OK':function() { okButtonDeactive(); },
    		'Cancel':function() { cancelButtonDeactive(); } 
    		}"
		autoOpen="false" modal="true" title="Dialog with Buttons">
     Do you want to make this Programme in-active?
    </sj:dialog>
	<div class="type-button">
		<sj:submit id="formSubmit1" openDialog="deactivedialog"
			value="Deactive" button="true" />
		<sj:submit id="formSubmit2" onclick="onClickSave()" value="Save"
			indicator="indicator" button="true" />
		<sj:submit id="formSubmit3" onclick="onClickBack()" value="Back"
			indicator="indicator" button="true" />
	</div>
	<s:form action="programmeDetailAction" theme="simple" cssClass="yform">
		<fieldset>
			<legend>Details</legend>
			<div>
				<table>
					<tr>
						<td>Programme Name</td>
						<td><s:textfield name="programmeName"></s:textfield></td>
						<td>Contact</td>
						<td><s:textfield name="contact" disabled="true"></s:textfield>
							<s:a href="contactProgrammeDetailsAction">Lookups</s:a></td>
					</tr>
					<tr>
						<td>Description</td>
						<td><s:textarea name="description"></s:textarea></td>
						<td></td>
						<td></td>
					</tr>
				</table>				
			</div>
		</fieldset>
	</s:form>
</body>
</html>